package cn.stylefeng.guns.modular.demo.controller.domain;

import cn.stylefeng.guns.dao.entity.GaiaSdSalePayMsg;
import cn.stylefeng.guns.dao.entity.yaode.GaiaSdSaleD;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author quspacedraon
 * @since 2024-04-01
 */
@Data
@ApiModel(value = "SaleOrderDetailVO", description = "配送单详情")
public class SaleOrderDetailVO implements Serializable {

    @ApiModelProperty("购买商品列表")
    List<SaleGoods> saleGoodsList;
    @ApiModelProperty("支付方式列表")
    List<Payment> paymentList;
    @ApiModelProperty("门店名称")
    private String storeName;
    @ApiModelProperty("订单号")
    private String billNo;
    @ApiModelProperty("收银员")
    private String cashier;
    @ApiModelProperty("营业员")
    private String salesman;
    @ApiModelProperty("销售时间")
    private Long saleTime;
    @ApiModelProperty("应收金额")
    private BigDecimal totalAmt;
    @ApiModelProperty("实收金额")
    private BigDecimal realTotalAmt;
    @ApiModelProperty("优惠金额")
    private BigDecimal preferentialTotalAmt;


    @Data
    public static class Payment {
        @ApiModelProperty("支付方式")
        private String gsspmName;
        @ApiModelProperty("支付金额")
        private BigDecimal gsspmAmt;
    }

    @Data
    public static class SaleGoods {
        @ApiModelProperty("商品品名")
        private String gssdProId;


        @ApiModelProperty("原价")
        private BigDecimal gssdPrc1;
        @ApiModelProperty("实价")
        private BigDecimal gssdPrc2;
        @ApiModelProperty("商品数量")
        private Integer gssdQty;
        @ApiModelProperty("商品总计金额")
        private BigDecimal gssdAmt;
        @ApiModelProperty("商品规格")
        private String spec;
        @ApiModelProperty("商品批号")
        private String batch;
        @ApiModelProperty(value = "商品效期")
        private String batExpireDate;
        @ApiModelProperty("生产企业")
        private String productionEnterprise;
        @ApiModelProperty("上市许可持有人")
        private String holder;

        @ApiModelProperty("名称")
        private String proName;
        @ApiModelProperty("产地")
        private String place;

    }


}
